Declare Function PPrtr Lib "PPRTR.DLL" (ByVal hWnd As Integer, ByVal ppSelection As Integer, ByVal PPNewValue As Integer, ByVal ppAction As Integer) As Integer
where: hWnd ................ is a window handle
ppSelection ......... is the selected printer device
attribute to get/change.
... NOTE that not all printers
support all actions (e.g. my
Epson LX-800 doesn't support
PaperLength or PaperWidth)
ppNewValue .......... is the value to change it to
... (anything will do call is a
gimme, no change )
... see PPGLOBAL.TXT for available
values
ppAction ............ is the action requested
... 0 = gimme current value
... 1 = change it to ppNewValue
returns ......... integer of value of selected attribute